package com.zjp.proxy;

/**
 * @author: zjp
 * @date: 2023-12-03
 * @description: 需要被代理的类
 */
public class BigStar implements Star {
    private String name;

    public BigStar(String name) {
        this.name = name;
    }

    @Override
    public String sing(String name) {
        System.out.println(this.name + "唱" + name);
        return "谢谢大家！";
    }

    @Override
    public void dance() {
        System.out.println(this.name + "跳舞");
    }
}
